<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RangeValidatorPage.aspx.cs" Inherits="RangeValidatorPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        Quantity:
        <asp:TextBox ID="txtQuantity" runat="server"></asp:TextBox>
        <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtQuantity"
            ErrorMessage="RangeValidator" MaximumValue="100" MinimumValue="0" SetFocusOnError="True"
            Type="Integer">Please enter number (integer) between 0-100</asp:RangeValidator><br />
        Price:
        <asp:TextBox ID="txtPrice" runat="server"></asp:TextBox>
        <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="txtPrice"
            ErrorMessage="RangeValidator" MaximumValue="100000" MinimumValue="10000" SetFocusOnError="True"
            Type="Double">Please enter number (double) between 10000-100000</asp:RangeValidator><br />
        <br />
        <asp:Button ID="Button1" runat="server" Text="Save" Width="65px" /></div>
    </form>
</body>
</html>
